[Next] [Last]


What's New in JavaScript 1.2

Describes the new features added to JavaScript 1.2, such as regular expressions, signed scripts, labeled statements and switch statements. The changes discussed here affect JavaScript both on the client and on the server. Last updated 10/97.

Contents

Introduction

Feature Summary
Event Model
Functions
Layers
Methods
Objects
Operators
Properties
Regular Expressions
Signed Scripts
Statements
Style Sheets
Miscellaneous
Compatibility With Earlier Versions of Navigator

Chapter 1  Event Model

The event Object
Details of the event object
Event Capturing
Example

Chapter 2  Events

Click
DblClick
DragDrop
KeyDown
KeyPress
KeyUp
MouseDown
MouseMove
MouseOut
MouseOver
MouseUp
Move
Resize

Chapter 3  Functions

Nesting Functions Within Functions
Number
String

Chapter 4  Methods

Document Method
getSelection
Navigator Method
preference
Window Methods
back
clearInterval
disableExternalCapture
enableExternalCapture
find
forward
home
moveBy
moveTo
open
print
resizeBy
resizeTo
scrollBy
scrollTo
setInterval
setTimeout
stop
Shared Methods
eval
watch
unwatch
captureEvents
handleEvent
releaseEvents
routeEvent
toString

Chapter 5  Objects

Creating Objects With Literal Notation
arguments
Number
screen

Chapter 6  The String Object

charCodeAt
concat
fromCharCode
match
replace
search
slice
split
substr
substring

Chapter 7  The Array Object

Creating Arrays With Literal Notation
Methods
concat
pop
push
shift
unshift
slice
splice
sort
Creating Arrays Under JavaScript 1.2
Working With Arrays and Regular Expressions

Chapter 8  Operators

Equality Operators
Equality Operators Without LANGUAGE=JavaScript1.2
Equality Operators With LANGUAGE=JavaScript1.2
Data Conversion
delete

Chapter 9  Properties

Anchor and Link Property
text
Function Property
arity
navigator Properties
language
platform
window Properties
innerHeight
innerWidth
height
width
locationbar
menubar
outerHeight
outerWidth
pageXOffset
pageYOffset
personalbar
scrollbars
statusbar
toolbar

Chapter 10  Regular Expressions

Creating a Regular Expression
Writing a Regular Expression Pattern
Using Simple Patterns
Using Special Characters
Using Parentheses
Working With Regular Expressions
Using Parenthesized Substring Matches
Executing a Global Search and Ignoring Case
Examples
Changing the Order in an Input String
Using Special Characters to Verify Input

Chapter 11  The RegExp Object

Methods
Description
Examples

Chapter 12  Regular Expression Objects

Properties
Methods
compile
exec
test

Chapter 13  Signed Scripts

Chapter 14  Statements

break
continue
do while
export
import
labeled
switch

Chapter 15  Miscellaneous Features

Activating JavaScript Commands From the Personal Toolbar

[Next] [Last]

Last Updated: 10/22/97 11:47:56


Copyright © 1997 Netscape Communications Corporation